import axios from '../utils/axios';
const baseURL = '/api/message/';


  // 获取私信信息
export const getMessageApi = async (params:object) => {
    return axios.post(`${baseURL}getMessage`,params)
  }
  //删除私信信息
  export const deleteMessageApi = async (params:object) => {
    return axios.post(`${baseURL}deleteMessage`,params)
  }
  //更新私信状态
  export const updateMessageApi = async (params:object) => {
    return axios.post(`${baseURL}updateMessageState`,params)
  }

  //获取未读私信数量
  export const getUnreadMessageApi = async (params:object) => {
    return axios.post(`${baseURL}getUnreadMessageCount`,params)
  }